#!/usr/bin/python
# -*- coding: utf8
__author__ = 'mkompan'


import boto
_EC2_CONFIG = 'ec2_config.py'

exec (open(_EC2_CONFIG))

ec2_handler = boto.connect_ec2_endpoint(awsurl,
                                        aws_access_key_id=apikey,
                                        aws_secret_access_key=secretkey,
                                        api_version=api_version)


images = ec2_handler.get_all_images()
print images
